package com.two.screen.water.balance.bean.database;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

@Entity
public class OrderProductDB {
    public static final int    UNIT_TYPE_WEIGHT = 0;
    public static final int    UNIT_TYPE_TIMES  = 1;
    @Id(autoincrement = true)
    public              Long   id;//本地id
    public              String productName;//商品名称
    public              Long   orderId;//订单id 1对多关系
    public              Long   productId;//商品id
    public              String oriPrice;//商品原价
    public              String giftPrice;//优惠力度的钱，如原价10,数量2，每样优惠3，那么共优惠2*3=6块。
    public              String realPrice;//实际卖的单价:
    public              int    discountPercent  = 100;
    public              String weight;//重量、数量
    public              String unitId;//单位id
    public              String unitName;//单位名称：市斤、斤、KG、500g、个、只、袋等等
    public              int    unitType         = 0;//对应服务器数据 im_tp 0 计重 1 计件
    public              String subTotalPrice;//小计 ：实际卖的价钱 * weight
    public              String logoImage;//商品图片
    public              String userId;//用户id
    public              Long   createTime;//订单商品创建时间 时间戳
    public              String createTimeName;//订单商品创建时间 转化格式显示
    public              Long   cateId;//商品分类id
    public              String cateName;//商品分类名称

    public int position = 0;//本地使用，用来联动更新列表UI


    public Boolean isSelected = false;//本地使用 :


    @Generated(hash = 2086479719)
    public OrderProductDB(Long id, String productName, Long orderId, Long productId, String oriPrice,
                          String giftPrice, String realPrice, int discountPercent, String weight, String unitId,
                          String unitName, int unitType, String subTotalPrice, String logoImage, String userId, Long createTime,
                          String createTimeName, Long cateId, String cateName, int position, Boolean isSelected) {
        this.id = id;
        this.productName = productName;
        this.orderId = orderId;
        this.productId = productId;
        this.oriPrice = oriPrice;
        this.giftPrice = giftPrice;
        this.realPrice = realPrice;
        this.discountPercent = discountPercent;
        this.weight = weight;
        this.unitId = unitId;
        this.unitName = unitName;
        this.unitType = unitType;
        this.subTotalPrice = subTotalPrice;
        this.logoImage = logoImage;
        this.userId = userId;
        this.createTime = createTime;
        this.createTimeName = createTimeName;
        this.cateId = cateId;
        this.cateName = cateName;
        this.position = position;
        this.isSelected = isSelected;
    }


    @Generated(hash = 2004787469)
    public OrderProductDB() {
    }


    public Long getId() {
        return this.id;
    }


    public void setId(Long id) {
        this.id = id;
    }


    public String getProductName() {
        return this.productName;
    }


    public void setProductName(String productName) {
        this.productName = productName;
    }


    public Long getOrderId() {
        return this.orderId;
    }


    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }


    public Long getProductId() {
        return this.productId;
    }


    public void setProductId(Long productId) {
        this.productId = productId;
    }


    public String getOriPrice() {
        return this.oriPrice;
    }


    public void setOriPrice(String oriPrice) {
        this.oriPrice = oriPrice;
    }


    public String getGiftPrice() {
        return this.giftPrice;
    }


    public void setGiftPrice(String giftPrice) {
        this.giftPrice = giftPrice;
    }


    public String getRealPrice() {
        return this.realPrice;
    }


    public void setRealPrice(String realPrice) {
        this.realPrice = realPrice;
    }


    public String getWeight() {
        return this.weight;
    }


    public void setWeight(String weight) {
        this.weight = weight;
    }


    public String getUnitId() {
        return this.unitId;
    }


    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }


    public String getUnitName() {
        return this.unitName;
    }


    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }


    public String getSubTotalPrice() {
        return this.subTotalPrice;
    }


    public void setSubTotalPrice(String subTotalPrice) {
        this.subTotalPrice = subTotalPrice;
    }


    public String getLogoImage() {
        return this.logoImage;
    }


    public void setLogoImage(String logoImage) {
        this.logoImage = logoImage;
    }


    public Long getCateId() {
        return this.cateId;
    }


    public void setCateId(Long cateId) {
        this.cateId = cateId;
    }


    public String getCateName() {
        return this.cateName;
    }


    public void setCateName(String cateName) {
        this.cateName = cateName;
    }


    public Boolean getIsSelected() {
        return this.isSelected;
    }


    public void setIsSelected(Boolean isSelected) {
        this.isSelected = isSelected;
    }


    public String getUserId() {
        return this.userId;
    }


    public void setUserId(String userId) {
        this.userId = userId;
    }


    public Long getCreateTime() {
        return this.createTime;
    }


    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }


    public String getCreateTimeName() {
        return this.createTimeName;
    }


    public void setCreateTimeName(String createTimeName) {
        this.createTimeName = createTimeName;
    }


    public int getPosition() {
        return this.position;
    }


    public void setPosition(int position) {
        this.position = position;
    }


    public int getUnitType() {
        return this.unitType;
    }


    public void setUnitType(int unitType) {
        this.unitType = unitType;
    }


    public int getDiscountPercent() {
        return this.discountPercent;
    }


    public void setDiscountPercent(int discountPercent) {
        this.discountPercent = discountPercent;
    }
}